#include<stdio.h>
int main(){
	char cString[100];
	char blank;
	int i,word=1;
	gets(c=9String);
	
	if(cString[0]=='\0'){
				printf("the words is not a word!\n");
	}
		else if(cString[0]==' '){
		printf("the words is a blank !\n");
	}
	else
	{
		for(i=0;cString[i]!='\0';i++){
			blank=cString[i];
			if(blank==' '){
				word++;
			}
		}
		printf("%d\n",word);
	}
	return 0;
} 
